#-*- coding: utf8 -*-
from tutor.scripts import *
from tutor.plugins.sympy import *

while True:
    with display_block('Entradas'):
        S = One * oneof(Two / 3, Three / 2, Four / 3, 2, Five / 2, 3, 4, 5, 6, 8)

    with display_block('Resultados'):
        correta = sqrt(S - One / 4)
        outro = S
        distr1 = 0
        distr2 = sqrt(S)
        distr3 = 2 * correta
        distr4 = sqrt(S) / 2
        distr5 = expand((S - One / 4) * sqrt(2) / 2)

        if len(set([correta, outro, distr1, distr2, distr3, distr4, distr5])) != 7:
            continue
        else:
            break
